package it.com.cci.observer_pattern.java_api;

import java.util.Observer;

/**
 * @author Lefnmg
 * @Description:
 * @date 2018/3/25
 */
public class apiTest {
    public static void main(String[] args) {
        WeatherData observable = new WeatherData(); //setMeasurements 方法父类不存在，子类调用  多态
        Observer currentCondationsDisplay = new CurrentCondationsDisplay(observable);
        observable.setMeasurements(24f,23f,44f);
    }
}
